#include <CommandInsertEnvObj.h>
Inheritance diagram for CommandInsertEnvObj:

Public Member Functions | |
| CommandInsertEnvObj (osg::Vec3 pos, OSGWindows *osgwind, string pathname, float scale) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| EnvironmentObject * | envObj |
| vector< TraffEduObject * > | insertedObjs_ |
|
||||||||||||||||||||
|
A constructor. Initializes osgwind_ and creates a new environmental object by using the parameter of pathname.
|
|
|
do the insertion of environmental object operation.
Implements Command. |
|
|
undo the insertion of environmental object operation.
Implements Command. |
|
|
a private variable. It is used to hold the created environmental object. |
|
|
a private vector of TraffEduObjects. It holds the inserted environmental objects. |
|
|
a private variable. It is initialized with the unique OSGWindows instance. |
1.4.6-NO